<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\Config;

abstract class Controller extends BaseController
{
    public function ajaxReturn($data='', $info='', $status=0)
    {
        $result = array(
            'data' => $data,    //数据或其它信息
            'info' => $info,   //提示信息
            'status' => $status   //1成功， 0失败
        );
        return response()->json($result);
    }
}
